﻿using System;
using System.Collections.Generic;

namespace Messhall.Application.Dto.Permissions.Requests;

public class CreatePermissionRequest
{
    /// <summary>
    /// 父级权限
    /// </summary>
    public Guid ParentId { get; set; }

    /// <summary>
    /// 权限唯一CODE代码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 权限名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// URL规则
    /// </summary>
    public string? Uri { get; set; }

    /// <summary>
    /// 图标
    /// </summary>
    public string? Icon { get; set; }

    /// <summary>
    /// 按钮权限
    /// </summary>
    public List<CreatePermissionAuthorityRequest> Authority { get; set; } = new();
}